import 'package:flutter/material.dart';
import 'package:xv_flutter/model/product.dart';

class ProductDetailPage extends StatelessWidget {
  final Items item;

  ProductDetailPage({this.item});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text(item.name)),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.start,
        children: <Widget>[
          Image.asset(item.imageUrl, fit: BoxFit.cover),
          Padding(padding: EdgeInsets.all(16), child: Text(item.desc)),
        ],
      ),
    );
  }
}
